package com.suyeer.consumer.util;

import com.suyeer.basic.util.BDateUtil;

/**
 * Created by jun on 2017/2/19.
 */
public class ConstUtil {

    /**
     * global
     */
    public final static String SYSTEM_START_UP_TIME = BDateUtil.getTimestampString();
    public final static String DEFAULT_ENCODE = "UTF-8";
    public final static String ALLOW_ORIGIN = "Access-Control-Allow-Origin";
    public final static String ALL_ORIGIN = "*";
    public final static String ATTACHMENT = "attachment;filename=%s";
    public final static String CONTENT_DISPOSITION = "Content-disposition";
    public final static String CONTENT_TYPE_JSON = "application/json";
    public final static String CONTENT_TYPE_APPLICATION_JSONP = "application/x-json";
    public final static String CONTENT_TYPE_URLENCODED = "application/x-www-form-urlencoded";
    public final static String CONTENT_TYPE_AUDIO_WAV = "audio/wav";
    public final static String CONTENT_TYPE_AUDIO_MP3 = "audio/wav";

    /**
     * cache key
     */
    public final static String MC_KEY_AUTH_INFO_INIT_TIME = "MC_KEY_AUTH_INFO_INIT_TIME";
    public final static String MC_KEY_USER_SESSION = "MC_KEY_USER_SESSION_";

    /**
     * request param
     */
    public final static String PARAM_KEY = "key";
    public final static String PARAM_CODE = "code";
    public final static String PARAM_FILE = "file";
    public final static String PARAM_SESSION_ID = "sessionId";
    public final static String PARAM_ID = "id";
    public final static String PARAM_USER_ID = "userId";
    public final static String PARAM_USER_PWD = "userPwd";
    public final static String PARAM_USER_NAME = "userName";
    public final static String PARAM_USER_IP = "userIp";
    public final static String PARAM_URL = "url";
    public final static String PARAM_HTML_DATA = "htmlData";
    public final static String PARAM_FILE_NAME = "fileName";

}

